package com.ssmdemo.service.imp.empimpl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ssmdemo.dao.RoleEmpMapping;
import com.ssmdemo.pojo.RoleEmpEntity;
import com.ssmdemo.service.RoleEmpService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleEmpServiceImp extends ServiceImpl<RoleEmpMapping, RoleEmpEntity> implements RoleEmpService {
    /**
     * 用户角色授权
     * @param roleId
     * @param empIdList
     * @return
     */
    public int insertRoleEmp(Integer roleId, List<Integer> empIdList) {
        baseMapper.insertRoleEmp(roleId, empIdList);
        return 0;
    }
}
